<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/9/26
 * Time: 15:56
 */
require_once './http.php';
require_once '../common_funtion.php';
$url='http://www.baidu.com';
//$res=http::fileGetContents($url); //返回的百度页面
//$res=http::getUrlByFOpen($url);//返回的百度页面
//$res=http::fileGetContentsByPost($url,array('yinfanliang'));// post请求
$http=new http();
$res=$http->curlRequest($url);
pre($res);